<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.isProd?'':'dev--'%>硅谷外卖WebApp</title>
    <script type="text/javascript">
      /*需要保证执行优先及速度, 作用:动态改变html的rem值*/
      document.querySelector('html').style.fontSize=window.screen.width/30+'px';
      //尺寸发生更改重新执行
      window.onresize=function () {
        document.querySelector('html').style.fontSize=window.screen.width/30+'px';
      }
    </script>
    <!--FastClick点击延时解决-->
    <script src="https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
    <script>
      if ('addEventListener' in document) {
        document.addEventListener('DOMContentLoaded', function() {
          FastClick.attach(document.body);
        }, false);
      }
      if(!window.Promise){
        document.writeln("<script src=\"https://cdn.bootcss.com/es6-promise/4.1.1/es6-promise.min.js\"><\/script>");

      }
    </script>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected
    fastclick-->
  </body>
</html>
